<%@ page import="WebHard.User" %>
<%--
  Created by IntelliJ IDEA.
  User: RaysMac
  Date: 14. 12. 15.
  Time: 오전 9:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>

<head>
  <title>웹 하드 서비스</title>
</head>
<body>
<h1>웹 하드 서비스</h1>

<%
  Object loginid =session.getAttribute("loginid");
  if(loginid==null){
%>

<form action="/user/login" method="post">
  <table border="1">
    <tr>
      <td>로그인</td>
    </tr>
    <tr>
      <td>아이디</td>
      <td><input type="text" name="id" /> </td>
    </tr>

    <tr>
      <td>비밀번호</td>
      <td><input type="password" name="pwd" /></td>
    </tr>

    <tr>
      <td><input type="checkbox"  defaultValue="0" name="autologin" value="1" />자동로그인</td>
      <td><input type="submit" value="로그인"></td>
    </tr>
  </table>
</form>
<form action="/join.jsp" />
<input type="submit" value="회원가입">
</form>

<%
  }
  else
  {
    response.sendRedirect("/me/");
  }
%>


</body>
</html>
